Nextcloud Upgrade Preparation

Download nextcloud_upgrade.sh (1.2 KB)

Last Modified:
Fri., Aug. 4, 2017
SHA-1:
eaa9fba31eb1660d455ca5fe5a0ced63e1911158

This script updates the owner and group of a Nextcloud installation to allow the web-based updater to perform an upgrade. This is only needed if your Nextcloud installation has been hardened by changing the ownership to a different user. Additionally, it deletes the .well-known directory since it's commonly created by Let's Encrypt and must be removed before an upgrade.

Please note:

  • The ocpath, htuser, and htgroup variables are set to the defaults for FreeBSD, so be sure to update them if your OS uses different values.
  • Don't forget to harden your installation again after performing the upgrade!

Preview: